package test08;

import java.util.function.Predicate;

/**
 * @Author czl
 * @Date 2024-04-11
 */
public class MainTest {

    public static void fraction(Integer fs, Predicate<Integer> predicate){

        boolean flag = predicate.test(fs);
        System.out.println(flag ? "合法" : "不合格");
    }

    public static void main(String[] args) {
        fraction(30,fs ->{
            if (fs >= 60){
                return true;
            }
            return false;
        });
    }
}
